package com.guanbao.entity;

/**
 * 返回消息实体
 * @author guangbaolianheguangbao-uni
 *
 */
public class ResponseMessage {
	private final static String STATUS_OK = "0";

	private final static String STATUS_ERROR = "1";

	private String status; // 状态

	private Object data; // 返回值

	private String msg; // 自定义信息
	
	public ResponseMessage() {
		this.status = STATUS_ERROR;
		this.msg = "系统异常！请联系管理员！";
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public static String getStatusOk() {
		return STATUS_OK;
	}

	public static String getStatusError() {
		return STATUS_ERROR;
	}
	
}